﻿@media only screen and (max-width: 658px) {
    .mobile-hide {
        display: none !important;
    }

    .powered-by-logo {
        flex-direction: column; /* Stack logo and dots vertically on smaller screens */
        align-items: center;
    }

    .logo {
        width: 80px; /* Scale down the logo */
    }

    .loading-dots div {
        width: 8px; /* Smaller dots */
        height: 8px; /* Smaller dots */
        margin: 0 2px; /* Less space between dots */
    }
}

@media only screen and (min-width: 659px) {
    .powered-by-logo {
        display: flex;
        align-items: center;
    }

    .logo {
        width: 180px; /* Original size for larger screens */
    }

    .loading-dots div {
        width: 12px; /* Original size */
        height: 12px; /* Original size */
        margin: 0 3px; /* Original spacing */
    }
}

.loading-overlay {
    display: none; /* Hide by default */
    position: fixed; /* Stay in place */
    z-index: 9999; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Disable scrolling */
    background-color: rgba(0, 0, 0, 0.04); /* Black background with transparency */
    align-items: center;
    justify-content: center;
    pointer-events: all; /* Enable pointer events to disable clicks */
}

.loading-container {
    width: 427px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding-bottom: 35px;
    position: relative;
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        opacity: 1;
    }

    50% {
        transform: scale(1.01);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
        opacity: 0.98;
    }
}

.loading-overlay .spinner {
    width: 100%;
    height: 130px;
    background: url('/images/PoweredByHRENew.png') no-repeat center center;
    background-size: contain;
    opacity: 1;
}

.loading-dots {
    display: none; /* Initially hidden */

    align-items: center;
    justify-content: center;
    margin-top: 10px;
    margin-left: -5px;
}

    .loading-dots div {
        background-color: #ccc;
        border-radius: 50%;
        animation: bounce 1.8s infinite ease-in-out;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        transform: perspective(100px) translateZ(0);
    }

@keyframes bounce {
    0%, 60%, 85%, 100% {
        transform: translateY(0) perspective(100px) translateZ(0);
        background-color: #ccc; /* Gray color for non-bouncing dots */
    }

    30% {
        transform: translateY(-4px) perspective(100px) translateZ(4px); /* Lowered bounce height */
        background-color: #3498db; /* Blue color for bouncing dots */
    }
}

.loading-dots div:nth-child(1) {
    animation-delay: 0s;
}

.loading-dots div:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots div:nth-child(3) {
    animation-delay: 0.4s;
}

.loading-dots div:nth-child(4) {
    animation-delay: 0.6s;
}

.loading-dots div:nth-child(5) {
    animation-delay: 0.8s;
}

.loading-dots div:nth-child(6) {
    animation-delay: 1s;
}

.loading-message {
    margin-top: 15px;
    font-size: 18px;
    animation: messagePulse 1.8s infinite;
}

@keyframes messagePulse {
    0%, 60%, 85%, 100% {
        opacity: 1;
    }

    30% {
        opacity: 0.5;
    }
}

#wrapper {
    padding-bottom: 81px !important;
    padding-top: 0px !important;
}

header#page-title-tabs {
    padding-top: 81px !important;
}

#header_shadow {
    background-size: cover !important;
    position: fixed !important;
    height: 200px !important;
    opacity: .4 !important;
    z-index: 99;
    pointer-events: none; /* Makes the element click-through */
}

.top-nav-container {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: space-between;
}

.powered-by-logo {
    flex: 1;
    display: flex;
    align-items: center;
}

.btn-mobile {
    flex: 0;
    z-index: 2; /* Ensures the button is above the dropdown */
}

.navbar-collapse {
    z-index: 1; /* Ensures the dropdown is below the button */
}

    /* Ensure dropdown expands from the bottom and takes full width */
    .navbar-collapse.in {
        position: absolute;
        width: 100%;
        top: 81px; /* Height of your header */
        left: 0;
    }
